package com.terry.sp.service;

import com.terry.sp.model.PrintTask;
import com.terry.sp.core.services.Service;
import org.springframework.web.multipart.MultipartFile;


/**
 * Created by CodeGenerator on 2019/04/21.
 */
public interface PrintTaskService extends Service<PrintTask> {

    PrintTask getTaskByDeviceId(int deviceId);

    PrintTask getTaskById(int taskId);

    void addTask(MultipartFile file, PrintTask task);

    void printTasks(int[] taskIds);

    boolean finishTaskById(int taskId);

}
